Skip to content

Conversation

@ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Apr 1, 2020

Netlify plugins can choose to notify errors with either:

  • failPlugin(): stops the plugin but not the whole build
  • failBuild(): stops the whole build

This PR uses failPlugin() for error with the Cypress setup itself, and failBuild() when the Cypress tests fail (including the ping).

utils.build is guaranteed to exist, so this PR also removes that additional check. This is turns allows removing few dependencies.

@ehmicky ehmicky mentioned this pull request Apr 1, 2020
23 tasks
@bahmutov
Copy link
Contributor

bahmutov commented Apr 1, 2020

I love it and I think this solves #20

@ehmicky could you push another empty commit - I have enabled forked pull requests builds on CircleCI so it should run through our tests on CI, please.

@ehmicky
Copy link
Contributor Author

ehmicky commented Apr 1, 2020

Done! 👍

@ehmicky ehmicky requested a review from bahmutov April 1, 2020 12:54
@bahmutov bahmutov changed the title Improve error handling fix: improve error handling Apr 1, 2020
@bahmutov bahmutov merged commit 55a5801 into cypress-io:master Apr 1, 2020
Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work

@ehmicky ehmicky deleted the feat/fail-plugin branch April 1, 2020 12:59
@bahmutov
Copy link
Contributor

bahmutov commented Apr 1, 2020

🎉 This PR is included in version 1.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants